package
{
	import flash.text.TextField;
	import flash.text.TextFieldType;

	public class campText extends TextField
	{
		public function campText(type:String=TextFieldType.DYNAMIC)
		{
			initializare(type);
		}
		
		public function initializare(type:String):void
		{
			this.width=30;
			this.height=18;
			this.type=type;
			
			if(type==TextFieldType.DYNAMIC)
				this.mouseEnabled=false;
			else
			{
				this.background=true;
				this.backgroundColor=0xeeeeee;
			}
		}
		
		public function set valid(e:Boolean):void
		{
			if(e==true)
			{
				this.mouseEnabled=true;
			}
			else
			{
				this.mouseEnabled=false;
			}
		}
	}
}